/*
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.aspose.words;

import com.aspose.words.internal.zzCJ;
import com.aspose.words.internal.zzO4;
import com.aspose.words.internal.zzX6C;
import com.aspose.words.internal.zzXO8;
import com.aspose.words.internal.zzYO8;
import com.aspose.words.internal.zzYjG;
import com.aspose.words.internal.zzZPJ;
import com.aspose.words.internal.zzZRx;
import com.aspose.words.internal.zzZWL;
import com.aspose.words.internal.zzZZR;
import com.aspose.words.internal.zzZdz;
import com.aspose.words.ref.Ref;
import java.util.Iterator;

final class zzZT2 {
    private static long[] zzvS;
    private static int zzVPr = zzZWL.zzXkr(2.0D);
    private static int[] zzYGT = new int[]{2, 1, 5, 4, 0, 3};
    private static byte[] zzW5U = new byte[]{-1, 11, -88, -26, -11, 107, 6, 31, -84, 111, 17, 18, -60, 60, 44, 20, -39, -75, 65, 83, 32, 75, 20, 10, -7, -31, -6, 64, -58, 16, 75, 52};
    private static char[] zzXqJ = new char[]{'"', '«', '»', '“', '”', '„', '‟'};
    private static final String zzYWx = zzYO8.zzYkZ().zzX6t(new byte[]{105, 84, 101, 109, 32, 115, 101, 78, 32, 119, 111, 82, 97, 109, 110});
    private static final String zzQC = zzYO8.zzYkZ().zzX6t(new byte[]{105, 84, 101, 109, 32, 115, 101, 78, 32, 119, 111, 82, 97, 109, 32, 110, 89, 67, 82});
    static long zzYMR = 0L;
    private static long zzX2s = 29273535023874148L;
    private static long zzWDD = 7163086397114115428L;

    static boolean zzWiC(int var0) {
        return var0 < 4093;
    }

    static boolean zzY10(Style var0, IWarningCallback var1, int var2) {
        if (zzWiC(var0.zzY6t())) {
            return true;
        } else {
            if (var1 != null) {
                var1.warning(new WarningInfo(1, var2, zzCJ.zzWaY("Style '{0}' has style index unsupported by target format.", new Object[]{var0.getName()})));
            }

            return false;
        }
    }

    static int zzYXT(int var0) {
        return var0 == 4095 ? 12287 : var0;
    }

    static int zzow(int var0) {
        return var0 == 12287 ? 4095 : var0;
    }

    static void zzFh(CompositeNode var0) {
        if (zzWK6(var0)) {
            var0.appendChild(new Paragraph(var0.getDocument()));
        }

    }

    private static boolean zzWK6(CompositeNode var0) {
        Node var1;
        while((var1 = var0.zzdu()) != null) {
            switch(var1.getNodeType()) {
                case 8:
                    return false;
                case 28:
                    ((StructuredDocumentTag)var1).zzWLc();
                    var0 = (CompositeNode)var1;
                    break;
                default:
                    return true;
            }
        }

        return true;
    }

    static boolean zzWvK(Paragraph var0) {
        CompositeNode var1;
        if ((var1 = (CompositeNode)zzZWL.zzY10(var0.zzWpf(), CompositeNode.class)) == null || var1.getNodeType() != 8 && zzWK6(var1)) {
            Object var2;
            for(var2 = var0; var2 != null && ((Node)var2).getNodeType() != 3 && ((Node)var2).getNodeType() != 7 && ((Node)var2).getNodeType() != 19 && ((Node)var2).getNodeType() != 20; var2 = ((Node)var2).zzYJK() == null ? ((Node)var2).getParentNode() : null) {
            }

            return var2 == null;
        } else {
            return true;
        }
    }

    static int zzZXW(int var0) {
        if (var0 >= 0 && var0 <= 127) {
            return 3;
        } else if (var0 <= 65535 && zzZWL.zzZPG(var0)) {
            return 1;
        } else if (var0 > 65535 && zzZWL.zzXG(var0)) {
            return 1;
        } else if (var0 >= 1424 && var0 <= 3583) {
            return 2;
        } else if (var0 >= 64285 && var0 <= 64335) {
            return 2;
        } else if ((var0 < 64336 || var0 > 65023) && (var0 < 65136 || var0 > 65279)) {
            return zzZWL.zzWK6((char)var0) ? 2 : 0;
        } else {
            return 2;
        }
    }

    static int zzWk(int var0, Font var1) {
        int var2;
        if ((var2 = zzZXW(var0)) != 0) {
            return var2;
        } else {
            Object var3;
            if ((var3 = var1.zzVYj().getDirectRunAttr(400)) == null) {
                return var2;
            } else {
                int var4;
                if ((var4 = (Integer)var3) != 1 || var0 < 1024 || var0 > 1327 || !zzYWx.equals(var1.getNameFarEast()) && !zzQC.equals(var1.getNameFarEast()) || !zzYWx.equals(var1.getNameOther()) && !zzQC.equals(var1.getNameOther())) {
                    if (var4 == 1) {
                        return zzVU9.zzZWp(var0, var1.getLocaleIdFarEast()) ? 1 : 0;
                    } else {
                        return var4 == 2 ? 0 : var4;
                    }
                } else {
                    return 0;
                }
            }
        }
    }

    static int zzWJU(int var0, Font var1) {
        return var1.getComplexScript() ? 2 : zzWk(var0, var1);
    }

    static zz3R zzY10(int var0, zz3R var1, zz3R var2, zz3R var3, zz3R var4) {
        switch(var0) {
            case 1:
                return var3;
            case 2:
                return var2;
            case 3:
                return var1;
            default:
                return var4;
        }
    }

    static String zzY10(int var0, String var1, String var2, String var3, String var4) {
        switch(var0) {
            case 1:
                return var3;
            case 2:
                return var2;
            case 3:
                return var1;
            default:
                return var4;
        }
    }

    static String zzZZR(String var0) {
        boolean var2 = true;
        return zzCJ.zzY9n(var0, '"');
    }

    static boolean zzXrY(String var0) {
        if (!zzCJ.zzYKH(var0) && var0.length() >= 2) {
            return zzCJ.zzY10(var0, zzXqJ, 0, 1) == 0 && zzCJ.zzY10(var0, zzXqJ, var0.length() - 1, 1) == var0.length() - 1;
        } else {
            return false;
        }
    }

    static String zzY7r(String var0) {
        return zzCJ.zzWaY("\"{0}\"", new Object[]{var0});
    }

    static String zzY5f(String var0) {
        return zzZZR(var0).replace("\\\\", "\\");
    }

    static String zzYuc(String var0) {
        return zzY7r(var0.replace("\\", "\\\\"));
    }

    static String zzWOm(String var0) {
        if (var0.indexOf(10) == -1) {
            return var0;
        } else {
            StringBuilder var1;
            zzZWL.zzY10(var1 = new StringBuilder(var0), ControlChar.CR_LF, ControlChar.CR);
            zzZWL.zzY10(var1, ControlChar.LF, ControlChar.CR);
            return var1.toString();
        }
    }

    static String zzYAk(String var0) {
        StringBuilder var1;
        zzZWL.zzY10(var1 = new StringBuilder(var0), ControlChar.CR_LF, ControlChar.LF);
        zzZWL.zzY10(var1, ControlChar.CR, ControlChar.LF);
        return var1.toString();
    }

    static String zzWk(zzX6C var0, String var1) {
        byte var4 = 0;
        byte var8 = 0;
        return zzWhr.zzY10(var1, var0, var4, var8);
    }

    static String zzY10(zzX6C var0, String var1, int var2) {
        byte var6 = 0;
        return zzWhr.zzY10(var1, var0, var2, var6);
    }

    static String zzY10(zzX6C var0, String var1, int var2, int var3) {
        return zzWhr.zzY10(var1, var0, var2, var3);
    }

    static int zzXaL(int var0) {
        switch(var0) {
            case 0:
                return 6;
            case 1:
                return 7;
            case 2:
                return 8;
            case 3:
                return 9;
            case 4:
                return 10;
            case 5:
                return 11;
            default:
                throw new IllegalStateException("Unknown header or footer type.");
        }
    }

    static int zzZMt(int var0) {
        switch(var0) {
            case 6:
                return 0;
            case 7:
                return 1;
            case 8:
                return 2;
            case 9:
                return 3;
            case 10:
                return 4;
            case 11:
                return 5;
            default:
                throw new IllegalStateException("This story is not a header or footer story.");
        }
    }

    static long zzYWp(int var0) {
        return zzvS[var0];
    }

    static int zzXGj(int var0, int var1, boolean var2) {
        for(int var3 = 0; var3 < zzvS.length; ++var3) {
            long var4;
            if (var3 != 17 && zzZWL.zzY10(zzZdz.zzWK6((float)((int)(var4 = zzvS[var3])), (float)((int)(var4 >>> 32))), zzZdz.zzWK6((float)var0, (float)var1), var2, (double)zzVPr)) {
                return var3;
            }
        }

        return 17;
    }

    static void zzZxA(Document var0) throws Exception {
        zzYhB(var0);
    }

    static void zzYhB(Document var0) throws Exception {
        if (var0 != null && zzYMR != 0L) {
            if (!zzZsV(var0)) {
                if (!zzY2p(var0)) {
                    var0.ensureMinimum();

                    */
/*
                    String var1 = zzCJ.zzWaY(zzVU9.zzfY(new int[]{43, 25, 5, 9, 91, 21, 12, 29, 1, 1, 68, 42, 64, 24, 1, 90, 78, 44, 22, 0, 79, 0, 29, 16, 78, 24, 13, 17, 70, 84, 57, 7, 30, 0, 23, 0, 0, 35, 23, 6, 10, 28, 74, 69, 109, 27, 8, 13, 28, 6, 3, 13, 90, 84, 74, 68, 94, 92, 73, 30, 30, 9, 88, 53, 29, 31, 11, 22, 75, 84, 40, 0, 23, 79, 40, 17, 74, 90, 23}), new Object[]{"2023.12.01".substring(0, 4)});
                    zzY10((Story)var0.getFirstSection().getBody(), (String)var1);
                    Iterator var2 = var0.getSections().iterator();

                    while(var2.hasNext()) {
                        Section var3;
                        if ((var3 = (Section)var2.next()).getHeadersFooters().getByHeaderFooterType(1) == null) {
                            var3.getHeadersFooters().add(new HeaderFooter(var0, 1));
                        }

                        if (var3.getHeadersFooters().getByHeaderFooterType(3) == null) {
                            var3.getHeadersFooters().add(new HeaderFooter(var0, 3));
                        }

                        byte[] var4 = null;
                        String var5 = null;

                        Iterator var6 = var3.getHeadersFooters().iterator();
                        while(var6.hasNext()) {
                            HeaderFooter var7;
                            if ((var7 = (HeaderFooter)var6.next()).isHeader()) {
                                if (var4 == null) {
                                    zzZZR var9 = zzXO8.zzXGj(zzVU9.zzfY(new int[]{47, 28, 20, 10, 93, 17, 86, 35, 1, 29, 0, 22, 0, 38, 29, 7, 1, 26, 22, 6, 75, 7, 86, 53, 29, 31, 11, 22, 75, 56, 23, 19, 1, 65, 20, 11, 73, 47}), Document.class);
                                    try {
                                        var4 = zzZWL.zzY9n(var9);
                                    } finally {
                                        if (var9 != null) {
                                            var9.close();
                                        }
                                    }
                                }
                                zzY10((Story)var7, (byte[])var4);
                            } else {
                                if (var5 == null) {
                                    var5 = zzVU9.zzfY(new int[]{45, 29, 1, 4, 90, 17, 28, 84, 25, 6, 16, 13, 14, 21, 22, 84, 11, 25, 5, 9, 91, 21, 12, 29, 1, 1, 68, 6, 65, 4, 1, 84, 1, 9, 68, 36, 93, 4, 23, 7, 11, 65, 51, 10, 92, 16, 11, 90, 78, 59, 11, 69, 74, 29, 11, 23, 1, 25, 1, 23, 14, 0, 16, 17, 78, 9, 17, 9, 66, 84, 14, 17, 28, 28, 13, 10, 64, 7, 88, 27, 8, 79, 11, 16, 92, 84, 57, 36, 39, 28, 68, 21, 66, 17, 25, 7, 11, 79, 18, 12, 93, 29, 12, 78, 78, 7, 16, 17, 94, 7, 66, 91, 65, 31, 22, 10, 74, 1, 27, 0, 29, 65, 5, 22, 94, 27, 11, 17, 64, 12, 11, 8, 1, 3, 23, 6, 10, 28, 75, 18});
                                }
                                zzY10((Story)var7, (String)var5);
                            }
                        }
                    }*//*


                    zzX1h(var0);
                }
            }
        } else {
            zzYMR = 29273535023874148L;
        }
    }

    private static boolean zzZsV(Document var0) {
        boolean var10000;
        boolean var2;
        label36: {
            byte[] var1 = zzZv0.zzYyX();
            var2 = true;
            if ((zzZv0.zzWtH ^ zzX2s) == zzWDD && var1 != zz4o.zzWy0) {
                if (var1 == zz4o.zzYwy) {
                    var10000 = true;
                    break label36;
                }

                if (var1 != zz4o.zzdq) {
                    return var2;
                }

                int var3 = 0;
                int[] var4;
                int[] var5;
                int var6 = (var5 = var4 = var0.zzWrH().zzZIr()).length;

                for(int var7 = 0; var7 < var6; ++var7) {
                    if (zzZv0.zzYk8(var5[var7])) {
                        ++var3;
                    }
                }

                if (var4.length == var3) {
                    var10000 = true;
                    break label36;
                }
            }

            var10000 = false;
        }

        var2 = var10000;
        return var2;
    }

    private static boolean zzY2p(Document var0) throws Exception {
        String var2 = null;
        Ref var3 = new Ref(var2);
        int var4 = zzY10(var0.zzXek(), var3);
        var2 = (String)var3.get();
        boolean var1;
        switch(var4) {
            case 1:
                var0.ensureMinimum();
                String var5 = zzCJ.zzYKH(var2) ? zzCJ.zzWaY(zzVU9.zzfY(new int[]{43, 25, 5, 9, 91, 21, 12, 29, 1, 1, 68, 42, 64, 24, 1, 90, 78, 44, 22, 0, 79, 0, 29, 16, 78, 24, 13, 17, 70, 84, 57, 7, 30, 0, 23, 0, 0, 35, 23, 6, 10, 28, 74, 69, 109, 27, 8, 13, 28, 6, 3, 13, 90, 84, 74, 68, 94, 92, 73, 30, 30, 9, 88, 53, 29, 31, 11, 22, 75, 84, 40, 0, 23, 79, 40, 17, 74, 90, 23}), new Object[]{"2023.12.01".substring(0, 4)}) : var2;
                zzY10((Story)var0.getFirstSection().getBody(), (String)var5);
                zzX1h(var0);
                var1 = true;
                break;
            case 2:
                var1 = true;
                break;
            default:
                var1 = false;
        }

        return var1;
    }

    private static int zzY10(zzYwW var0, Ref<String> var1) {
        byte var2 = 0;
        var1.set("");
        if (var0 != null) {
            long[] var3;
            long var4 = (var3 = new long[]{3489487817L, 103682052L, 18039217L, 923926808L, 78451475L, 307324897L})[0] + var3[1];
            long var6 = var3[2] + var3[3];
            long var8 = var3[4] + var3[5];
            if (((long)var0.hashCode() ^ var4 ^ var6 ^ var8) == 0L) {
                throw null;
            }
        }

        return var2;
    }

    static double zzYyY(int var0) {
        switch(var0) {
            case 0:
            case 65535:
                return 0.0D;
            case 1:
                return 1.0D;
            case 2:
                return 0.05D;
            case 3:
                return 0.10000000149011612D;
            case 4:
                return 0.2D;
            case 5:
            case 20:
            case 21:
            case 22:
            case 23:
                return 0.25D;
            case 6:
            case 25:
                return 0.3D;
            case 7:
                return 0.4D;
            case 8:
            case 14:
            case 15:
            case 16:
            case 17:
            case 18:
                return 0.5D;
            case 9:
                return 0.6D;
            case 10:
            case 19:
                return 0.7D;
            case 11:
                return 0.75D;
            case 12:
                return 0.8D;
            case 13:
                return 0.9D;
            case 24:
            case 43:
                return 0.35D;
            case 35:
                return 0.025D;
            case 36:
                return 0.075D;
            case 37:
                return 0.125D;
            case 38:
                return 0.15D;
            case 39:
                return 0.175D;
            case 40:
                return 0.225D;
            case 41:
                return 0.275D;
            case 42:
                return 0.325D;
            case 44:
                return 0.375D;
            case 45:
                return 0.425D;
            case 46:
                return 0.45D;
            case 47:
                return 0.475D;
            case 48:
                return 0.525D;
            case 49:
                return 0.55D;
            case 50:
                return 0.575D;
            case 51:
                return 0.625D;
            case 52:
                return 0.65D;
            case 53:
                return 0.675D;
            case 54:
                return 0.725D;
            case 55:
                return 0.775D;
            case 56:
                return 0.825D;
            case 57:
                return 0.85D;
            case 58:
                return 0.875D;
            case 59:
                return 0.925D;
            case 60:
                return 0.95D;
            case 61:
                return 0.975D;
            default:
                throw new IllegalStateException(zzYO8.zzYkZ().zzX6t(new byte[]{110, 85, 110, 107, 119, 111, 32, 110, 101, 116, 116, 120, 114, 117, 46, 101}));
        }
    }

    static int zzXDw(int var0) {
        switch(var0) {
            case 0:
            case 1:
            case 2:
            case 3:
            case 4:
            case 5:
            case 6:
            case 7:
            case 8:
            case 9:
            case 10:
            case 11:
            case 12:
            case 13:
            case 14:
            case 15:
            case 16:
            case 17:
            case 18:
            case 19:
            case 20:
            case 21:
            case 22:
            case 23:
            case 24:
            case 25:
            case 35:
            case 36:
            case 37:
            case 38:
            case 39:
            case 40:
            case 41:
            case 42:
            case 43:
            case 44:
            case 45:
            case 46:
            case 47:
            case 48:
            case 49:
            case 50:
            case 51:
            case 52:
            case 53:
            case 54:
            case 55:
            case 56:
            case 57:
            case 58:
            case 59:
            case 60:
            case 61:
            case 65535:
                return var0;
            default:
                return 0;
        }
    }

    static boolean zzZNz(int var0) {
        switch(var0) {
            case 14:
            case 15:
            case 16:
            case 17:
            case 18:
            case 19:
            case 20:
            case 21:
            case 22:
            case 23:
            case 24:
            case 25:
                return true;
            default:
                return false;
        }
    }

    static int zzXuv(double var0) {
        switch((int)(var0 * 40.0D)) {
            case 0:
                return 0;
            case 1:
                return 35;
            case 2:
                return 2;
            case 3:
                return 36;
            case 4:
                return 3;
            case 5:
                return 37;
            case 6:
                return 38;
            case 7:
                return 39;
            case 8:
                return 4;
            case 9:
                return 40;
            case 10:
                return 5;
            case 11:
                return 41;
            case 12:
                return 6;
            case 13:
                return 42;
            case 14:
                return 43;
            case 15:
                return 44;
            case 16:
                return 7;
            case 17:
                return 45;
            case 18:
                return 46;
            case 19:
                return 47;
            case 20:
                return 8;
            case 21:
                return 48;
            case 22:
                return 49;
            case 23:
                return 50;
            case 24:
                return 9;
            case 25:
                return 51;
            case 26:
                return 52;
            case 27:
                return 53;
            case 28:
                return 10;
            case 29:
                return 54;
            case 30:
                return 11;
            case 31:
                return 55;
            case 32:
                return 12;
            case 33:
                return 56;
            case 34:
                return 57;
            case 35:
                return 58;
            case 36:
                return 13;
            case 37:
                return 59;
            case 38:
                return 60;
            case 39:
                return 61;
            default:
                return 1;
        }
    }

    static zzYjG zzWaY(zzYjG var0, zzYjG var1, double var2) {
        if (var2 == 0.0D) {
            return var1;
        } else if (var2 == 1.0D) {
            return var0;
        } else if (var0.zzX4e() && var1.zzX4e()) {
            int var4 = (int)((double)var0.zzZOS() * var2 + (double)var1.zzZOS() * (1.0D - var2));
            return new zzYjG(var4, var4, var4);
        } else {
            return zzZRx.zzY10(var0, var1, var2);
        }
    }

    private static void zzY10(Story var0, String var1) {
        Document var2;
        if ((var2 = var0.zzW2q()).getFirstChild() != var2.getLastChild() || !var2.getFirstSection().getBody().zzVOF()) {
            Run var3;
            if (var0.getFirstParagraph() == null || (var3 = var0.getFirstParagraph().zzZmR()) == null || !zzCJ.zzZsV(var3.getText(), var1)) {
                (var3 = new Run(var0.getDocument(), var1, new zzXf6())).zzZ4q().zzXtS(160, zzYjG.zzXrx);
                var3.zzZ4q().zzXtS(60, zzYU.zzXFf);
                var3.zzZ4q().zzXtS(190, 24);
                Paragraph var4;
                (var4 = new Paragraph(var0.getDocument(), new zzqK(), new zzXf6())).appendChild(var3);
                Paragraph var5;
                if ((var5 = var0.getFirstParagraph()) != null && var5.getParagraphFormat().getPageBreakBefore()) {
                    var5.getParagraphFormat().setPageBreakBefore(false);
                }

                var0.prependChild(var4);
            }
        }
    }

    private static void zzX1h(Document var0) throws Exception {
        zzX1u(var0);
        NodeCollection var1 = var0.getChildNodes(8, true);
        int var2 = 0;
        int var3 = 0;
        Paragraph var4 = null;
        String var5 = null;
        Iterator var6 = var1.iterator();

        do {
            if (!var6.hasNext()) {
                return;
            }

            Paragraph var7;
            if ((var7 = (Paragraph)var6.next()).getParentNode().getNodeType() == 3 || var7.getParentNode().getNodeType() == 7) {
                var4 = var7;
                Iterator var8 = var7.iterator();

                while(var8.hasNext()) {
                    switch(((Node)var8.next()).getNodeType()) {
                        case 22:
                            ++var3;
                            break;
                        case 24:
                            --var3;
                    }
                }
            }

            ++var2;
        } while(var2 <= 198 || var4 == null || var3 != 0 || var4.zzpd(0).getNodeType() == 4);

        zzYVf.zzw0(var4.getParentSection().getNextSibling(), (Node)null);
        zzYVf.zzY10(var4, false, var0.getLastChild(), false);
        if (var5 == null) {
            var5 = zzVU9.zzfY(new int[]{58, 7, 13, 22, 14, 16, 23, 23, 27, 2, 1, 11, 90, 84, 15, 21, 29, 79, 16, 23, 91, 26, 27, 21, 26, 10, 0, 69, 70, 17, 10, 17, 78, 13, 1, 6, 79, 1, 11, 17, 78, 6, 16, 69, 89, 21, 11, 84, 13, 29, 1, 4, 90, 17, 28, 84, 7, 1, 68, 17, 70, 17, 88, 49, 24, 14, 8, 16, 79, 0, 17, 27, 0, 79, 41, 10, 74, 17, 86, 73});
        }

        Run var9;
        (var9 = new Run(var0, var5, new zzXf6())).zzZ4q().zzXtS(160, zzYjG.zzXrx);
        var9.zzZ4q().zzXtS(60, zzYU.zzXFf);
        var9.zzZ4q().zzXtS(190, 24);
        Paragraph var10;
        (var10 = new Paragraph(var0, new zzqK(), new zzXf6())).appendChild(var9);
        var0.getLastSection().getBody().appendChild(var10);
    }

    private static void zzY10(Story var0, byte[] var1) throws Exception {
        Document var2;
        if ((var2 = var0.zzW2q()) != null) {
            if (var2.getFirstChild() != var2.getLastChild() || !var2.getFirstSection().getBody().zzVOF()) {
                if (var0.zzYeq().getCount() <= 0 || !var0.zzYeq().zzjE(0).zzdJ() || !zzO4.zzY10(zzZWL.zzWk(3, var0.zzYeq().zzjE(0).getImageData().getImageBytes()), zzW5U)) {
                    zzFh(var0);
                    DocumentBuilder var3;
                    (var3 = new DocumentBuilder(var2)).zzY10(var0.getFirstParagraph(), 0);
                    Shape var4;
                    (var4 = var3.insertImage(var1, 0, 0.0D, 0, 0.0D, -1.0D, -1.0D, 3)).setVerticalAlignment(2);
                    var4.setHorizontalAlignment(2);
                    var4.getImageData().setBrightness(0.85D);
                    var4.getImageData().setContrast(0.15D);
                    var4.setBehindText(true);
                }
            }
        }
    }

    private static void zzX1u(Document var0) {
        Iterator var1 = var0.getSections().iterator();

        while(var1.hasNext()) {
            Section var2 = (Section)var1.next();
            zzZPJ var3 = new zzZPJ();
            Iterator var4 = var2.getHeadersFooters().iterator();

            HeaderFooter var5;
            while(var4.hasNext()) {
                var5 = (HeaderFooter)var4.next();
                var3.zzWaY(zzYGT[var5.getHeaderFooterType()], var5);
                var5.remove();
            }

            for(int var6 = 0; var6 < var3.getCount(); ++var6) {
                var5 = (HeaderFooter)var3.zzZj9(var6);
                var2.insertAfter(var5, var2.getBody());
            }
        }

    }

    static {
        boolean var1 = true;
        boolean var0 = true;
        (zzvS = new long[18])[0] = zzZWL.zzY1d(297.0D, 420.0D);
        zzvS[1] = zzZWL.zzY1d(210.0D, 297.0D);
        zzvS[2] = zzZWL.zzY1d(148.0D, 210.0D);
        zzvS[3] = zzZWL.zzY1d(250.0D, 353.0D);
        zzvS[4] = zzZWL.zzY1d(176.0D, 250.0D);
        zzvS[5] = zzZWL.zzWOB(7.25D, 10.5D);
        zzvS[6] = zzZWL.zzWOB(8.5D, 13.0D);
        zzvS[7] = zzZWL.zzWOB(17.0D, 11.0D);
        zzvS[8] = zzZWL.zzWOB(8.5D, 14.0D);
        zzvS[9] = zzZWL.zzWOB(8.5D, 11.0D);
        zzvS[10] = zzZWL.zzY1d(110.0D, 220.0D);
        zzvS[11] = zzZWL.zzWOB(8.47D, 10.83D);
        zzvS[12] = zzZWL.zzWOB(5.5D, 8.5D);
        zzvS[13] = zzZWL.zzWOB(11.0D, 17.0D);
        zzvS[14] = zzZWL.zzWOB(10.0D, 14.0D);
        zzvS[15] = zzZWL.zzWOB(11.0D, 17.0D);
        zzvS[16] = zzZWL.zzWOB(4.125D, 9.5D);
    }
}
*/
